
//- This Source Code Form is subject to the terms of the Mozilla Public
//- License, v. 2.0. If a copy of the MPL was not distributed with this
//- file, You can obtain one at http://mozilla.org/MPL/2.0/.
//-
//- Copyright (c) 2021-present Kaleidos Ventures SL

section.activities
    .activities-wrapper
        .activity(ng-repeat="activity in activities track by activity.id")
            img.activity-avatar(
                tg-avatar="activity.user"
                ng-alt="{{activity.user.name}}"
            )
            .activity-main
                .activity-data
                    span.activity-creator {{activity.user.name}}
                    span.activity-date {{activity.created_at | momentFormat:'DD MMM YYYY HH:mm'}}

                .activity-diff(
                    ng-repeat="(key, diff) in activity.values_diff"
                    tg-history-diff
                    model="model"
                    type='key'
                    diff='diff'
                )
